Getting 'NaN' in an Array or Array Calculations 您所在的位置:网站首页 labview mean Getting 'NaN' in an Array or Array Calculations

Getting 'NaN' in an Array or Array Calculations

2024-07-11 20:06| 来源: 网络整理| 查看: 265

Additional Information

If you have an array that has elements that are NaN and you would like to remove them so that you can perform operations such as finding the mean or standard deviation of a column or row then you can remove these elements and replace them with zeros by using the 'Not a Number/ Path/ Refnum?' function. The following code will remove any cases of NaN and replace them with zeros:

In general, if you find NaN appearing in arrays or as results of functions, take a look at the data you are trying to read or manipulate.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有